package com.briup.labs.mapper;

import com.briup.labs.pojo.SmartLabs;
import com.briup.labs.pojo.SmartLabsAdminR;
import com.briup.labs.pojo.SysUser;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SmartLabsMapper {

    //查询所有
    List<SmartLabs> all();

    //分页查询
    List<SmartLabs> list(String key);

    //为满足分页查询数据查询的扩展用户
    SysUser getUser(String id);

    //添加
    void add(SmartLabs smartLabs);

    //更新
    void update(SmartLabs smartLabs);

    //查询所有管理员
    List<SmartLabsAdminR> admins();

    //修改管理员
    void updateAdmin(SmartLabsAdminR smartLabsAdminR);

    //添加管理员
    void addAdmin(SmartLabsAdminR smartLabsAdminR);

    //删除
    void delete(Integer id);

    //删除桥表数据
    void deleteBridgeAdmin(Integer id);

    //删除用到该实验室的服务
    void deleteDevice(Integer id);
}
